package com.example.logicsdkdemo.controller;

import com.aims.logic.runtime.contract.dto.LogicRunResult;
import com.aims.logic.runtime.runner.LogicRunner;
import com.aims.logic.sdk.LogicRunnerServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class TestController {
    @Autowired
    LogicRunnerServiceImpl runnerService;

    @PostMapping("/api/test")
    public LogicRunResult test(@RequestBody String input) {
        return runnerService.runBizByJson("java.demo", "xxx", input);
    }
}
